main = do
  print [a*100+b*10+c | a <- [1..9], b <- [0..9], c <- [0..9], a^3+b^3+c^3==a*100+b*10+c]
